var index={
    //内容区跳转页面
    gotoPage:function (page) {
        $.get({
            url:'page/'+page+".html",
            success:function (data) {
                $main = $('.content-wrapper');
                $main.empty();
                $main.append(data);
            }
        })
    },
    //获取所有被选择行id
    getAllSelectedRowId:function () {
        selectedRowArr = []
        $selectedRows = $('.selected input[type="checkbox"]');

        for (i=0;i<$selectedRows.size();i++) {
            row = $selectedRows[i];
            selectedRowArr.push(row.value);
        }
        return selectedRowArr;
    },
    alert:function (type,msg) {
        $.notify({
            message:msg,
        },{
            type:type,
            allow_dismiss: false,
            placement: {
                from: "top",
                align: "center"
            },
        })
    }
}
$('.treeview-menu li').bind('click',null,function () {
    var page = this.dataset.page;
    index.gotoPage(page);
})
$('.first-load').click();

